import BlankLayout from '@/layouts/BlankLayout.vue'
const staticRoutes = [
  /********************************       首页      ***************************************/
  {
    icon: 'home',
    title: '首页',
    path: '/home',
    redirect: '/home/workplace',
    component: BlankLayout,
    children: [
      {
        icon: 'control',
        title: '工作台',
        path: '/home/workplace',
        component: () => import('@/views/home/index.vue'),
      },
    ],
  },
  /********************************     权限demo    ***************************************/
  // {
  //   icon: 'permissions',
  //   title: 'demo权限验证',
  //   path: '/roles',
  //   redirect: '/roles/all',
  //   component: BlankLayout,
  //   children: [
  //     {
  //       icon: 'detail',
  //       title: '用户都有权限',
  //       path: 'all',
  //       component: () => import('@/views/roles/all/index.vue'),
  //     },
  //     {
  //       icon: 'detail',
  //       roles: ['user'],
  //       title: 'Users有权限',
  //       path: 'user',
  //       component: () => import('@/views/roles/user/index.vue'),
  //     },
  //     {
  //       icon: 'detail',
  //       roles: ['test'],
  //       title: 'Tests有权限',
  //       path: 'test',
  //       component: () => import('@/views/roles/test/index.vue'),
  //     },
  //   ],
  // },
  /********************************     应用管理     ***************************************/
  {
    icon: 'icon-menu-app-manage',
    title: '应用管理',
    path: '/app-manage',
    redirect: '/app-manage/list',
    component: BlankLayout,
    children: [
      {
        hidden: true,
        selectLeftMenu: '/app-manage',
        title: '应用列表',
        path: '/app-manage/list',
        name: 'AppManageList',
        component: () => import(/* webpackChunkName: "AppManageList" */ '@/views/app-manage/app-list/index.vue'),
      },
      {
        hidden: true,
        selectLeftMenu: '/app-manage',
        title: '应用详情',
        path: '/app-manage/detail',
        name: 'AppManageDetail',
        redirect: '/app-manage/detail/basic-info/app',
        component: () => import(/* webpackChunkName: "AppManageDetail" */ '@/views/app-manage/app-detail/index.vue'),
        children: [
          {
            selectLeftMenu: '/app-manage',
            title: '应用信息',
            path: '/app-manage/detail/basic-info/app',
            name: 'AddManageBasicInfoApp',
            component: () =>
              import(
                /* webpackChunkName: "AddManageBasicInfoApp" */ '@/views/app-manage/app-detail/basic-info-app.vue'
              ),
          },
          {
            selectLeftMenu: '/app-manage',
            title: '客户端管理',
            path: '/app-manage/detail/basic-info/clients',
            name: 'AddManageBasicInfoClients',
            component: () =>
              import(
                /* webpackChunkName: "AddManageBasicInfoClients" */ '@/views/app-manage/app-detail/basic-info-clients.vue'
              ),
          },
          {
            selectLeftMenu: '/app-manage',
            title: '第三方管理',
            path: '/app-manage/detail/develop-manage/third-party',
            name: 'AddManageDevelopThirdParty',
            component: () =>
              import(
                /* webpackChunkName: "AddManageDevelopThirdParty" */ '@/views/app-manage/app-detail/develop-manage-third-party.vue'
              ),
          },
          {
            selectLeftMenu: '/app-manage',
            title: '访问控制管理',
            path: '/app-manage/detail/develop-manage/acl',
            name: 'addManageDevelopAcl',
            component: () =>
              import(
                /* webpackChunkName: "addManageDevelopAcl" */ '@/views/app-manage/app-detail/develop-manage-acl.vue'
              ),
          },
        ],
      },
    ],
  },

  /********************************       管理     ***************************************/
  {
    path: '/manage',
    redirect: '/manage/pageManage',
    title: '管理',
    icon: 'management',
    children: [
      {
        path: '/manage/layoutManage',
        component: () =>
          import(/* webpackChunkName: "layoutManage" */ '@/views/manage/layout-manage/layout-manage.vue'),
        title: '布局管理',
      },
      {
        path: '/manage/portletManage',
        component: () =>
          import(/* webpackChunkName: "portletManage" */ '@/views/manage/portlet-manage/portlet-manage.vue'),
        title: '组件管理',
      },
      {
        path: '/manage/portletCategory',
        component: () =>
          import(/* webpackChunkName: "portletCM" */ '@/views/manage/portlet-categoray-manage/portlet-cm.vue'),
        title: '组件分类管理',
      },
      {
        path: '/manage/pageManage',
        component: () => import(/* webpackChunkName: "pageManage" */ '@/views/manage/page-manage/page-manage.vue'),
        title: '页面管理',
      },
    ],
  },
  /********************************     功能菜单管理     ***************************************/
  {
    path: '/funcManag',
    redirect: '/funcManag/funcAggr',
    title: '功能菜单管理',
    icon: 'page',
    children: [
      {
        path: '/funcManag/funcAggr',
        component: () => import(/* webpackChunkName: "funcAggr" */ '@/views/func-manag/func-aggr/func-aggr.vue'),
        title: '功能池',
      },
      {
        path: '/funcManag/menuManag',
        component: () => import(/* webpackChunkName: "menuManag" */ '@/views/func-manag/menu-manag/menu-manag.vue'),
        title: '菜单管理',
      },
    ],
  },
  /********************************     角色管理     ***************************************/
  {
    path: '/roleManag',
    component: () => import(/* webpackChunkName: "role" */ '@/views/role-manag/role/role.vue'),
    title: '角色管理',
    icon: 'role-management',
  },
  /********************************     权限管理     ***************************************/
  {
    path: '/permissionManag',
    component: () => import(/* webpackChunkName: "role" */ '@/views/permission-manag/index.vue'),
    title: '权限管理',
    icon: 'permissions',
  },
  /********************************     MQ消息     ***************************************/
  {
    path: '/MQpage',
    component: () => import(/* webpackChunkName: "MQpage" */ '@/views/mq-page/mq-page.vue'),
    title: 'MQ消息',
    icon: 'icon',
  },
  /********************************     变更日志     ***************************************/
  {
    icon: 'icon-menu-change-log',
    title: '变更日志',
    path: '/change-log',
    component: () => import(/* webpackChunkName: "changeLog" */ '@/views/change-log/index.vue'),
  },
  /******************************     广告栏位管理     **************************************/
  {
    icon: 'icon-menu-ads-manage',
    title: '广告栏位管理',
    path: '/ads-manage',
    component: () => import(/* webpackChunkName: "changeLog" */ '@/views/ads-manage/index.vue'),
  },
]

export default staticRoutes
